package com.example.service.impl;

import com.example.mapper.UserMapper;
import com.example.pojo.UserInfo;
import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean getInfoByEmail(String email) {
        UserInfo info = userMapper.findInfoByMail(email);
        if (null == info){
            return false;
        }
        return true;
    }
}
